//
//  BoyeChooseCityView.h
//  itboye2015002
//
//  Created by boye_mac1 on 15/9/15.
//  Copyright (c) 2015年 Boye. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CityObject.h"

@class BoyeChooseCityView;

@protocol BoyeChooseCityViewDelegate <NSObject>

-(void)chooseCityView:(BoyeChooseCityView *)chooseCity cityObject:(CityObject *)cityObject;
@end

@interface BoyeChooseCityView : UIView<UIPickerViewDataSource,UIPickerViewDelegate>

@property (nonatomic,strong) UIPickerView       * pickerView;
@property (nonatomic,assign) BOOL               isOpen;

@property (nonatomic,strong) NSMutableArray     * cityListArray; //城市
@property (nonatomic,strong) NSMutableArray     * areaListArray; //地区
@property (nonatomic,strong) NSMutableArray     * provinceListArray; //省

@property (nonatomic,strong) NSMutableArray     * dataArray; //省

// 行
@property (nonatomic,assign) NSInteger          provinceRow;
@property (nonatomic,assign) NSInteger          cityRow;
@property (nonatomic,assign) NSInteger          areaRow;

@property (nonatomic,assign)id <BoyeChooseCityViewDelegate>delegate;
-(instancetype)initWithPicker;

-(void)close;
-(void)open;

@end
